import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import http from "./assets/http.js";
import "./assets/reset.scss";
import "./assets/global.scss";
// import VueLazyload from "vue-lazyload";
import vueLazyLoad from "v-lazyload-src";
import WOW from "wowjs";
import "wowjs/css/libs/animate.css";
Vue.prototype.$wow = WOW;

Vue.use(vueLazyLoad, {
  loading: "./assets/lazy.jpg",
  error: "./assets/lazy.jpg",
  preload: 1,
});
import {
  Autocomplete,
  Tree,
  Breadcrumb,
  BreadcrumbItem,
  Message,
  Loading,
  Cascader,
  Menu,
  Submenu,
  MenuItem,
  MenuItemGroup,
  Avatar,
  CascaderPanel,
  Form,
  FormItem,
  Input,
  InputNumber,
  Button,
  Pagination,
  MessageBox,
  Dialog,
  Upload,
  Calendar,
} from "element-ui";
Vue.use(Autocomplete);
Vue.use(Tree);
Vue.use(Breadcrumb);
Vue.use(BreadcrumbItem);
Vue.use(Loading);
Vue.use(Cascader);
Vue.use(Menu);
Vue.use(Submenu);
Vue.use(MenuItem);
Vue.use(MenuItemGroup);
Vue.use(Avatar);
Vue.use(CascaderPanel);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Input);
Vue.use(Button);
Vue.use(Pagination);
Vue.use(InputNumber);
Vue.use(Dialog);
Vue.use(Upload);
Vue.use(Calendar);
Vue.prototype.$message = Message;
Vue.config.productionTip = false;
Vue.prototype.$http = http;
Vue.prototype.$confirm = MessageBox.confirm;
// 使用elementui
4;
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
// element-ui
// lazy-load
// wowjs
